PY is the source file, PYc is the source file compiled file, Pyo is the source file optimization compiled file, PYD is written in other languages of the Python library1. Is python an interpreted language?Python is an explanatory language, and I've
DLL filethatDynamic Link library files, is aExecutable file, which allows programs to share executionSpecial TasksThe required code and other resources. I can't open it, but I can use it.Disassembly;PYD is aPythondynamic modules. Essentially DLL
1. OS]
1. Rename: OS. Rename (old, new)
2. Delete: OS. Remove (file)
3. List the files in the directory: OS. listdir (PATH)
4. Get the current working directory: OS. getcwd ()
5. Change the working directory: OS. chdir (newdir)
6. Create a
Py2exe is an executable program (*. in this way, you can run this executable program on windows without installing python. I,
Introduction
Py2exe has been used to create wxPython, Tkinter, Pmw, PyGTK, pygame, win32com client and server, and other
Recently, Cython has written *. pyx extension, compiled it into a C file, and finally converted it into a so extension for python reference.Use distutils to compile and createSetup. pyScriptFrom distutils. core import setupFrom distutils. extension
I.. __init__.py fileThe original python module has a __init__ in each package. PY file (This file defines the properties and methods of the package) and then some module files and subdirectories, if there are __init__.py in the subdirectory then it
In the default Pyramid code structure, there is only one models. py file. in the actual project, if you need to classify models and put it under different files, what should we do through the following file structure. change py to a package.
The following file structure is used to change models. py to a package.
Copy codeThe Code is as follows:Myapp_ Init _. pyScripts_ Init _. pyInitialize_db.pyModels_ Init _. pyMeta. pyFoo. pyMoo. pyThe above meta. py defines a other model file
LineCount. in the actual running process, py has a lot of simple skills for your reference. We can use it in the python script file, that is, the Python script file LineCount. py, if you are interested in Python script files, you can click the
1. Install python 2.7.3Note: Use python-V to check the version before installation. Generally, the lower version is installed.UseMv/usr/bin/python/usr/bin/python24After this modification, if the previous script uses an old version, modify /#!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.